package com.platform.wechat.common;

import lombok.Data;

/**
 * @author CX
 * @create 2021-07-23 16:57
 */
@Data
public class Wechat114MessageBean {

    private String FromUserName;//发送方帐号（一个OpenID）

    private String ToUserName;//开发者 微信号

    private Long createTime;//消息创建时间 （整型）

    private String MsgType;//消息类型，event

    private String Event;//事件类型，CLICK

    private String EventKey;//事件KEY值，与自定义菜单接口中KEY值对应

    private String ticket;//获取的二维码ticket，凭借此ticket可以在有效时间内换取二维码

    @Override
    public String toString() {
        return "Wechat114MessageBean{" +
                "FromUserName='" + FromUserName + '\'' +
                ", ToUserName='" + ToUserName + '\'' +
                ", createTime=" + createTime +
                ", MsgType='" + MsgType + '\'' +
                ", Event='" + Event + '\'' +
                ", EventKey='" + EventKey + '\'' +
                ", ticket='" + ticket + '\'' +
                '}';
    }

    public Wechat114MessageBean() {
    }

    public Wechat114MessageBean(String fromUserName, String toUserName, Long createTime, String msgType, String event, String eventKey, String ticket) {
        FromUserName = fromUserName;
        ToUserName = toUserName;
        this.createTime = createTime;
        MsgType = msgType;
        Event = event;
        EventKey = eventKey;
        this.ticket = ticket;
    }
}
